package com.zlsy.es.dianping.service;

import com.zlsy.es.dianping.pojo.dto.ShopDTO;
import com.zlsy.es.dianping.pojo.model.Shop;
import com.zlsy.es.dianping.pojo.vo.response.ShopResponse;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author zhouliang
 * @date 2020/3/1 14:56
 */
public interface ShopService {

    Shop create(Shop Shop);

    Shop get(Integer id);

    List<Shop> selectAll();

    List<ShopResponse> recommend(BigDecimal longitude, BigDecimal latitude);

    List<Map<String, Object>> searchGroupByTags(String keyword, Integer categoryId, String tags);

    Integer countAllShop();

    List<ShopResponse> search(BigDecimal longitude, BigDecimal latitude,
                      String keyword, Integer orderby, Integer categoryId, String tags);
}
